package cn.qiao.zk.product.config;

import cn.qiao.zk.product.entity.Register;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.io.InputStream;
import java.util.Properties;

/**
 * desc:
 *
 * @author qiao
 * @date 2023年05月05日 21:08
 */
@Configuration
public class RegisterConfig {

    @Value("${server.port}")
    private String port;
    @Value("${spring.ip}")
    private String ip;

    @Bean
    public Register register(){
        Register register1 = new Register();
        register1.register(ip+port);
        return register1;
    }


}
